package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtMapPosDao;
import wqh.domain.DtMapPos;
import wqh.service.DtMapPosService;

import java.util.List;

/**
 * Created by devts on 2016/11/30.
 */
@Service("dtMapPosService")
public class DtMapPosServiceImpl implements DtMapPosService {

    @Autowired
    private DtMapPosDao mapPosDao;

    public List<DtMapPos> findRecordByClass(DtMapPos mapPos) {
        return mapPosDao.findRecordByClass(mapPos);
    }

    public List<DtMapPos> findRecordByGeoID(Integer geoID) {
        return mapPosDao.findRecordByGeoID(geoID);
    }

    public int insertRecord(DtMapPos mapPos) {
        return mapPosDao.insertRecord(mapPos);
    }

    public int updateRecordByClass(DtMapPos mapPos) {
        return mapPosDao.updateRecordByClass(mapPos);
    }

    public int deleteById(Integer id) {
        return mapPosDao.deleteById(id);
    }

    public int deleteByDeviceId(Integer device_id) {
        return mapPosDao.deleteByDeviceId(device_id);
    }

    public int deleteByClass(DtMapPos mapPos) {
        return mapPosDao.deleteByClass(mapPos);
    }
}
